﻿using System;
using System.Linq.Expressions;

namespace Fabrication
{
    public static class ChildBuilderOptionExtensions
    {
        public static ChildPropertySelector<TParent, TChild, TParam> Link<TParent, TChild, TParam>(this IChildBuilderOptions<TParent, TChild> childBuilderOptions, Expression<Func<TChild, TParam>> member)
        {
            return new ChildPropertySelector<TParent, TChild, TParam>(childBuilderOptions, member);
        }
    }
}